﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>咨询部人员修改</title>
<link rel="stylesheet" type="text/css" href="_ADMIN_css/css.css" />
<link rel="stylesheet" type="text/css" href="_ADMIN_css/laydate.css" />
<script type="text/javascript" src="_ADMIN_js/jquery.min.js"></script>
	<script type="text/javascript" src="_ADMIN_laydate/laydate.js"></script>
</head>
<style>
	.p_r{
		padding-right: 0px;
	}
</style>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="_ADMIN_img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">咨询部</a>&nbsp;-</span>&nbsp;修改信息
			</div>
		</div>
		<div class="page ">
			<!-- 上传广告页面样式 -->
			<div class="banneradd bor">
				<div class="baTopNo">
					<span>修改信息</span>
				</div>
				<div class="baBody">
					<form action="{:url('admin/advisory/update',['job_id'=>$res.job_id])}">
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你的姓名：<input type="text"
							class="input3" name="job_name" disabled="disabled" value="{$res.job_name}" />
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签单时间：<input type="text"
							class="input3 laydate-icon p_r" id="start"  autocomplete="off"  name="job_order_time" value="{$res.job_order_time|date='Y-m-d',###}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贷款时间：<input type="text"
							class="input3 laydate-icon p_r"  autocomplete="off"  id="end1" name="job_borrow_time" value="{$res.job_borrow_time}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;放贷时间：<input type="text"
							class="input3 laydate-icon p_r"  autocomplete="off"  id="start1" name="job_put_borrow_time" value="{$res.job_put_borrow_time}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贷款机构：<input type="text" class="input3" name="job_broow_name"  value="{$res.job_broow_name}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;等级分类：<select class="input3" name="job_sort"><option value="1">A类</option>
						<option value="2">B类</option>
						<option value="3">C类</option>
						<option value="4">无效</option></select>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;面试时间：<input class="input3 laydate-icon p_r" id="start2" name="job_inter_time"
							type="text"  autocomplete="off"  value="{$res.job_inter_time|date='Y-m-d',###}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否试岗：<select class="input3" name="job_try_sn"><option value="1">是</option>
						<option value="0">否</option></select>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否办理：<select class="input3" name="job_apply_sn"><option value="1">是</option>
						<option value="0">否</option></select>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;毕业时间：<input class="input3 laydate-icon p_r"    id="start3"   name="job_graduate_time"   autocomplete="off"        value="{$res.job_graduate_time}"                            type="text" />
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;身份证号：<input class="input3"                                          type="text" name="job_card" onblur="isIdCardNo(num)" id="num" value="{$res.job_card}"/>
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;面试情况：
						<div class="btext2">
							<textarea class="text2" name="job_inter_text">{$res.job_inter_text}</textarea>
						</div>
					</div>
					<div class="bbD">
						<p class="bbDP">
							<input class="btn_ok btn_yes" type="submit" style="margin-left: 9%;" value="修改">
							<a class="btn_ok btn_no" href="{:url('admin/advisory/advisory')}">取消</a>
						</p>
					</div>
					</form>
				</div>
			</div>

			<!-- 上传广告页面样式end -->
		</div>
	</div>
</body>
<script type="text/javascript">
    !function(){
        laydate.skin('molv');//切换皮肤，请查看skins下面皮肤库
        laydate({elem: '#demo'});//绑定元素
    }();

    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY-MM-DD',
        min: '1990-01-01', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var start1 = {
        elem: '#start1',
        format: 'YYYY-MM-DD',
        min: '1990-01-01', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };

    var start2 = {
        elem: '#start2',
        format: 'YYYY-MM-DD',
        min: '1990-01-01', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };

    var start3 = {
        elem: '#start3',
        format: 'YYYY-MM-DD',
        min: '1990-01-01', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };

    var end1 = {
        elem: '#end1',
        format: 'YYYY-MM-DD',
        min: '1990-01-01',
        max: '2099-06-16',
        istime: true,
        istoday: false,
        choose: function(datas){
            start.max = datas; //结束日选好后，充值开始日的最大日期
        }
    };

    var end = {
        elem: '#end',
        format: 'YYYY-MM-DD',
        min: '1990-01-01',
        max: '2099-06-16',
        istime: true,
        istoday: false,
        choose: function(datas){
            start.max = datas; //结束日选好后，充值开始日的最大日期
        }
    };
    laydate(start);
    laydate(end1);
    laydate(start1);
    laydate(start2);
    laydate(start3);

    //自定义日期格式
    laydate({
        elem: '#test1',
        format: 'YYYY年MM月DD日',
        festival: true, //显示节日
        choose: function(datas){ //选择日期完毕的回调
            alert('得到：'+datas);
        }
    });

    //日期范围限定在昨天到明天
    laydate({
        elem: '#hello3',
        min: laydate.now(-1), //-1代表昨天，-2代表前天，以此类推
        max: laydate.now(+1) //+1代表明天，+2代表后天，以此类推
    });


    //匹配身份证号码正则
    function isIdCardNo(num){
        //　 if (isNaN(num)) {alert("输入的不是数字！"); return false;}
        var len = num.length, re;
        if (len == 15)
            re = new RegExp(/^(\d{6})()?(\d{2})(\d{2})(\d{2})(\d{2})(\w)$/);
        else if (len == 18)
            re = new RegExp(/^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/);
        else {alert("输入的数字位数不对。"); return false;}
        var a = num.match(re);
        if (a != null)
        {
            if (len==15)
            {
                var D = new Date("19"+a[3]+"/"+a[4]+"/"+a[5]);
                var B = D.getYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5];
            }
            else
            {
                var D = new Date(a[3]+"/"+a[4]+"/"+a[5]);
                var B = D.getFullYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5];
            }
            if (!B) {alert("输入的身份证号 "+ a[0] +" 里出生日期不对。"); return false;}
        }
        if(!re.test(num)){alert("身份证最后一位只能是数字和字母。");return false;}

        return true;
    }
</script>
</html>